<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-else-if按条件显示</title>
</head>
<body>
  <!--模版语法-->
  <div id="app">
    <!--v-else-if-->
    <h2 v-if="score > 90">优秀</h2>
    <h2 v-else-if="score > 80">良好</h2>
    <h2 v-else-if="score >= 60">及格</h2>
    <h2 v-else-if="score < 60">不及格</h2>
  </div>
  <script src="../lib/vue.js"></script>
  <script>
    // 使用vue
    const app = Vue.createApp({
      data: function(){
        return {
          score: 89
        }
      }
      ,methods: {
      }
    }
    )
    // 挂载 
    app.mount("#app")

  </script>

</body>
</html>
